package com.kgame5.xtank3d.model.tank.fsms.fire {
import kgame5.kutil.T;

import com.kgame5.xtank3d.GameEnum;
import com.kgame5.xtank3d.control.AddShotCommand;
import com.kgame5.xtank3d.vo.MyTankVO;

/**
 * @author kk
 */
public class MeStateWaitFire extends StateWaitFire{
	
	//__________________Propetty__________________
	
	//______________________Method___________________
	public function MeStateWaitFire(pvo:MyTankVO){
		super(pvo);
	}
	
	//执行状态
	override public function update():void{
		if(tankVO.input.fire) {
			tankVO.input.fire=false;
			fsm.sendNotify(GameEnum.TANK_FIRE);
			
			//发请求常规开炮
			fsm.sendCommand(AddShotCommand.NAME,tankVO);
			
			fsm.SwitchState( GameEnum.STATE_TANK_RELOAD_SHOT);
		}
	}
	
}//end of class
}